-- aid_absorb
-- created by wangy
-- 辅助属性，在场时，全场同伴攻击附加吸血效果

return {
    apply = function(prop, baseValue)
        local v = math.modf(baseValue * prop[3] / 1000);

        v = math.max(1, v);
        return v;
    end,

    desc = function(prop)
        local row = PropM.getRow(prop[1]);
        local desc = row.desc;

        -- 复仇光环
        desc = string.gsub(desc, "{0}", tostring(math.modf(prop[3] / 10)));
        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end
};